<include file="./Tpl/Admin/header.html" />
<div class="main">
  <div class="main_title"> <img src="/Public/Admin/images/book1.gif"/>&nbsp;&nbsp;充值记录 </div>
  <eq name="module" value="list">
    <div class="list_body">
      <form action="?s=Admin/Fill" method="post" >
        用户名：
        <input type="text" name="uname" />
        交易单号：
        <input type="text" name="num" />
        <input type="submit" value="查询"/>
      </form>
      <form action="{$path}/Fill/delAll" method="post" id="formid">
	<a href="{$path}/Fill/index">全部</a>|  <a href="{$path}/Fill/index/type/1">网上充值</a>|<a href="{$path}/Fill/index/type/2">支付宝手动充值</a>
        <table cellspacing=0 cellpadding=0 border=0>
          <tr>
            <!--th width="5%">选择</th-->
            <th width="10%">充值时间</th>
            <th width="8%">用户名</th>
            <th width="8%">充值金额</th>
			<th width="9%">备注</th>
            <th width="10%">交易号码</th>
            <th width="8%">汇款银行</th>
            <th width="10%">银行账号</th>
            <th width="8%">打款人姓名</th>
            <th width="6%">充值方式</th>
            <th width="10%">交易号码</th>
            <th width="7%">状态</th>
            <th width="8%">操作</th>
          </tr>
          <volist name="list" id="vo" empty="$empty">
            <tr>
              <!--td><input type="checkbox" class="id" name="id[]" value="{$vo.id}"></td-->
              <td>{$vo.ctime|date='Y-m-d H:i:s',###}</td>
              <td>{$vo.username|default='无'}</td>
              <td>{$vo.num|default='0'}</td>
			  <td>{$vo.random|default='0'}</td>
              <td>{$vo.tradeno|default='无'}</td>
              <td>{$vo.bankname|default='无'}</td>
              <td>{$vo.banknum|default='无'}</td>
              <td>{$vo.uname|default='无'}</td>
              <td>{$vo.tel|default='无'}</td>
              <td><eq name="vo.type" value="1">网上充值 </eq>
                <eq name="vo.type" value="2"> 支付宝手工充值</eq></td>
              <td>
                <eq name="vo.status" value="2"> 充值成功<else/>代充值</eq>
              </td>
              <td>
			  <eq name="vo.status" value='2'><else/>
			  <a href="{$path}/Fill/add/id/{$vo.id}">手动充值</a></eq></td>
            </tr>
          </volist>
          <tr>
            <td colspan=12 class="page"><!--input type="button" id="all" value=" 全选 ">
					<input type="button" id="all_return" value=" 全不选 ">
					<input type="button" id="dels" value=" 批量删除 "-->
              <a href="{$path}/Fill/index/page/1{$urls}">首页</a> <a href="{$path}/Fill/index/page/{$page-1}{$urls}">上一页</a> <a href="{$path}/Fill/index/page/{$page+1}{$urls}">下一页</a> <a href="{$path}/Fill/index/page/{$page_num}{$urls}">尾页</a> </td>
          </tr>
        </table>
      </form>
    </div>
    <else/>
    <div class="main_body">
      <form action="{$path}/Fill/insert" method="post">
        <input type="hidden" name="id" value="{$id}"/>
        <input type="hidden" name="uid" value="{$uid}"/>
        <table cellspacing=0 cellpadding=0 border=0>
		     <tr>
            <td>用户名：</td>
		
            <td><input type="text" name="uname" value="{$username}" disabled="disabled"></td>
          </tr>
		       <tr>
            <td>交易号</td>
            <td><input type="text" name="tradeno" value="{$tradeno}" disabled="disabled"/></td>
          </tr>
		  
		  <tr>
            <td>备注</td>
            <td><input type="text" name="random" value="{$random}" disabled="disabled"/></td>
          </tr>
          <tr>
            <td>数量</td>
            <td><input type="text" name="num" value="{$num}"/></td>
          </tr>
        </table>
        <div>
          <input type="submit" value="提交"/>
        </div>
      </form>
    </div>
  </eq>
</div>
<include file="./Tpl/Admin/footer.html" />
<script language="javascript">
$(document).ready(function(){
    $('#all').click(function(){
	    $('.id').attr('checked',true);
	});
	$('#all_return').click(function(){
	    $('.id').attr('checked',false);
	});
    $('#dels').click(function(){

		f = 0;
	    $('.id').each(function(){
		    if($(this).attr('checked')) f = 1;
		});
		
        if(f==0){
		    alert('请选择要删除的项！');
		}else{
		    $('#formid').submit();
		}
	});
	$('#add').click(function(){
	    location.href="{$path}/Fill/add";
	});
});
</script>
<script type="text/javascript">
	$(document).ready(function(e) {
        //打开子菜单
			$("#collapseEight").addClass("in");	
    });
</script>